# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-livereload
pkgver=2.7.1
pkgrel=1
pkgdesc='livereload server in python.'
arch=('any')
url='https://github.com/lepture/python-livereload'
license=('BSD')
depends=('python' 'python-tornado' 'python-django')
makedepends=('python-setuptools')
checkdepends=('python-pytest')
source=("https://github.com/lepture/python-livereload/archive/refs/tags/v$pkgver.tar.gz")
sha512sums=('a0c5a316ad5d34518b6ca44cddff51ba45d60a8ba24de767e791aa529e4ab22accf15916321fea755e67f4fd0aecb1e0ed840142662c27c8eaa6cad5dc2a7399')

build() {
  cd $pkgname-$pkgver

  python setup.py build
}

package() {
  cd $pkgname-$pkgver

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build

  install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

